function save() {
	var editState = 0;
	if ("UPDATE" == method) {
		editState = 3;
	} else if ('INSERT' == method) {
		editState = 1;
	}
	var param = RS.getFormData('editForm');
	$.ajax({
			url : RS.webPath + "/admin/rsOrgan/edit",
			type : 'post',
			data : 'editState=' + editState + '&method=' + method + '&__paramSet__=' + param,
			dataType : 'json',
			success : function(data) {
				if(data.status==1){
					parent.layer.alert('提交成功',function(index){
						layer.close(index);
						parent.location.reload();
					});
				}else{
					parent.layer.alert('提交失败');
				}
			}
	});
}

$(function() {
	if ("UPDATE" == method) {
		RS.loadForm('editForm',retInfo);
	}
});
